def recommend_portfolio(id,rate, time, risk, cost):
    welcome_msg = '欢迎' + (str)(id) + '!  感谢您的使用!'
    amount = cost
    trace_profit = 0.1 
    daily_profit = 0.1
    expected_profit = 0.1
    high_risk_ratio = 0.5
    low_risk_ratio = 1 - high_risk_ratio
    maximun_profit = expected_profit + 0.02
    maximun_loss = 0 - expected_profit 


 

    if rate == 'high':
        if time == 'short':
            if risk == 'high':
                if cost == 5:
                   expected_profit = 0.12
                   high_risk_ratio = 0.8
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.03
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   expected_profit = 0.11
                   high_risk_ratio = 0.75
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.03
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss
 
                elif cost == 20:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   expected_profit = 0.08
                   high_risk_ratio = 0.60
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.75
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 

                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:
                   
                   high_risk_ratio = 0.70
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.60
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.50
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

        elif time == 'mid':
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.75
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.50
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.60
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.50
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

        else:
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.60
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss
             
                elif cost == 50:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.50
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.60
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.50
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.50
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.40
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

    elif rate == 'mid':
        if time == 'short':
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

        elif time == 'mid':
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost ==20:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.35
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.3
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

        elif time == 'high':
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.60
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:
                   
                   high_risk_ratio = 0.75
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

    else:
        if time == 'short':
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif time == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.7
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

        elif time == 'mid':
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.65
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.6
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.35
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.3
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.35
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.3
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.25
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

        elif time == 'high':
            if risk == 'high':
                if cost == 5:
                   
                   high_risk_ratio = 0.55
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.50
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            elif risk == 'mid':
                if cost == 5:
                   
                   high_risk_ratio = 0.5
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:
                   
                   high_risk_ratio = 0.45
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:
                   
                   high_risk_ratio = 0.4
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:
                   
                   high_risk_ratio = 0.35
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   
                   high_risk_ratio = 0.3
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

            else:
                if cost == 5:

                   high_risk_ratio = 0.40
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 10:

                   high_risk_ratio = 0.35
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 20:

                   high_risk_ratio = 0.30
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                elif cost == 50:

                   high_risk_ratio = 0.25
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss

                else:
                   high_risk_ratio = 0.2
                   low_risk_ratio =  1 - high_risk_ratio
                   expected_profit = high_risk_ratio/10 + 0.04 
                   maximun_profit = expected_profit + 0.02
                   maximun_loss = 0 - expected_profit 
                   return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss


    return welcome_msg,amount,expected_profit,low_risk_ratio,high_risk_ratio,maximun_profit,maximun_loss


#recommend_portfolio(iddd,high,mid,low,20)